// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor;

#include "OracleContinueStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../visitor/OracleASTVisitor.h"

SQLExpr_ptr OracleContinueStatement::getWhen()
{
  return when;
}

void OracleContinueStatement::setWhen(SQLExpr_ptr when)
{
  if (when != nullptr)
  {
    when->setParent(SharedObject(OracleContinueStatement));
  }
  this->when = when;
}

string_ptr OracleContinueStatement::getLabel()
{
  return label;
}

void OracleContinueStatement::setLabel(string_ptr label)
{
  this->label = label;
}

// @Override
void OracleContinueStatement::accept0(OracleASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(OracleContinueStatement)))
  {
    acceptChild(visitor, when);
  }
  visitor->endVisit(SharedObject(OracleContinueStatement));
}
